{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin markup_tags static %}
{% block pagehead %}
    <link rel="stylesheet" href="{% static "ietf/css/list.css" %}">
{% endblock %}
{% block title %}IETF {{ meeting.number }} proceedings{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        <a class="text-decoration-none text-reset"
           href="{% url 'ietf.meeting.views.proceedings' num=meeting.number %}">
            IETF {{ meeting.number }} proceedings
        </a>
    </h1>
    <h2>Attendee list of IETF {{ meeting.number }} meeting</h2>
    
    {% if template %}
      {{template|safe}}
    {% else %}
        <table id="id_attendees" class="table table-sm table-striped tablesorter">
        <thead>
            <tr>
                <th scope="col" data-sort="last">Last Name</th>
                <th scope="col" data-sort="first">First Name</th>
                <th scope="col" data-sort="organization">Organization</th>
                <th scope="col" data-sort="country">Country</th>
                <th scope="col" data-sort="type">Registration Type</th>
            </tr>
        </thead>
        <tbody>
            {% for reg in registrations %}
            <tr>
                <td>{{ reg.last_name }}</td>
                <td>{{ reg.first_name }}</td>
                <td>{{ reg.affiliation }}</td>
                <td>{{ reg.country_code }}</td>
                <td>{{ reg.attendance_type }}</td>
            </tr>
            {% endfor %}
        </tbody>
        </table>
    {% endif %}
{% endblock %}
{% block js %}
    <script src="{% static "ietf/js/list.js" %}"></script>
{% endblock %}